package com.gba.mark.util;

import lombok.Data;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Component;

@Component
@Data
public class ResponseUtil<T> {
    private Integer status;
    private String msg;
    private T data;

    public ResponseUtil() {
    }

    public ResponseUtil(HttpStatus status) {
        this.status = status.value();
    }

    public ResponseUtil(HttpStatus status, String msg) {
        this.status = status.value();
        this.msg = msg;
    }

    public ResponseUtil(HttpStatus status, String msg, T data) {
        this.status = status.value();
        this.msg = msg;
        this.data = data;
    }

    public ResponseUtil(HttpStatus ok, T byWord) {

    }
}
